//
//  UIDevice_Jailbroken.m
//  tcpoctest
//
//  Created by gump on 6/18/13.
//  Copyright (c) 2013 gump. All rights reserved.
//

#import "UIDevice_Jailbroken.h"

@implementation UIDevice (Helper)
- (BOOL)isJailbroken {
    BOOL jailbroken = NO;
    NSString *cydiaPath = @"/Applications/Cydia.app";
    NSString *aptPath = @"/private/var/lib/apt/";
    if ([[NSFileManager defaultManager] fileExistsAtPath:cydiaPath]) {
        jailbroken = YES;
    }
    if ([[NSFileManager defaultManager] fileExistsAtPath:aptPath]) {
        jailbroken = YES;
    }
    return jailbroken;
}  
@end
